﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tema_cars
{
    class TipAutomobil : Automobil
    {
        private string type;
        private string accessories;
        private string engine;
        private string sizes;

        public TipAutomobil() { }

        public TipAutomobil(string name, string type, string color, string transmission, string engine, string sizes, string accessories)
            : base(name, color, transmission)
        {
            this.accessories = accessories;
            this.engine = engine;
            this.sizes = sizes;
            this.type = type;
        }

        public override string getType()
        {
            return type;
        }

        public override void  print()
        {
            Console.WriteLine("\n\t" + this.name + "\t" + this.type +"\t" + this.color + "\ttrasnmisie-" + this.transmission + "\n" +
                "<-> Cu urmatoarele caracteristici:\n" +
                "\t- dotari: " + this.accessories + "\n" +
                "\t- motorizare: " + this.engine + "\n" +
                "\t- dimensiune: " + this.sizes + "\n");
        }

    }
}
